package fcl.intro;

import java.util.Timer;
import java.util.TimerTask;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import fcl.platform.*;
//import exam.AndroidExam.*;

public class LoadingIntro extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // intro image (loading mark is fake currently)
        setContentView(R.layout.intro); 
        
        
        MyTimerTask myTask = new MyTimerTask();
        Timer myTimer = new Timer();
        
        //display the fake loading image (intro.png) for 2second and lunch the TabAct.class
        myTimer.schedule(myTask,1300);
        
    }
	
    public boolean onTouchEvent(MotionEvent event){
		super.onTouchEvent(event);
		if(event.getAction() == MotionEvent.ACTION_DOWN){
			Intent myIntent = new Intent(LoadingIntro.this, manualAct.class);
			startActivity(myIntent);
			return true;
		}
		return false;
	} 
    
    class MyTimerTask extends TimerTask {
    	public void run(){
        	Intent myIntent = new Intent (LoadingIntro.this, manualAct.class);
            startActivity(myIntent);
        }
    }
}